<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta content="text/html; charset=UTF-8" http-equiv="content-type">
	<title>Dreambox WebTV</title>
	
	<!-- External libs
	<script type="text/javascript" src="/web-data/lib/prototype-1.6.1_rc3.js"></script>
	<script type="text/javascript" src="/web-data/lib/scriptaculous.js?load=effects"></script>
	<script type="text/javascript" src="/web-data/lib/shadedborder.js"></script>
	<script type="text/javascript" src="/web-data/lib/trimpath-template-1.0.38.js"></script>
	 -->
	<script type="text/javascript" src="/web-data/lib/libs_minified.js"></script>
	
	<!-- userprefs Object -->
	<script type="text/javascript" src="/web-data/userprefs.js"></script>	
	
	<!-- our stuff //-->
	<script type="text/javascript" src="/web-data/objects.js" ></script>
	<script type="text/javascript" src="/web-data/statics.js" ></script>
	<script type="text/javascript" src="/web-data/tools.js" ></script>
	<script type="text/javascript" src="/web-data/timer.js" ></script>	
	<script type="text/javascript" src="/web-data/vlcplayer.js" ></script>
	
	<link href="/web-data/tpl/default/streaminterface/style.css" type="text/css" rel="stylesheet">
	<link rel="shortcut icon" type="/web-data/image/x-icon" href="/web-data/img/favicon.ico">

	<!-- Live RSS Feeds //-->
	<link rel="alternate" type="application/rss+xml" title="Movie List" href="/web/movielist.rss?tag" >


	<script language="javascript" type="text/javascript">
		
		if (!window.$) {
			window.$ = function(id) { return document.getElementById(id); }
		}
		
		function getWinSize(win) 
		{ 
			if(!win) win = window; 
			var s = {}; 
			if(typeof win.innerWidth != 'undefined') 
			{ 
				s.width = win.innerWidth; 
				s.height = win.innerHeight; 
			} 
			else 
			{ 
				 var obj = getBody(win); 
				 s.width = parseInt(obj.clientWidth); 
				 s.height = parseInt(obj.clientHeight); 
			} 
			return s; 
		} 

		function getBody(w) 
		{ 
			return (w.document.compatMode && w.document.compatMode == "CSS1Compat") ? w.document.documentElement : w.document.body || null; 
		} 
		
		function setMaxHeight(element){
			/*
			try{			
				var slc = $(element);
				size = getWinSize();
				slc.style.maxHeight = size.height - 200+"px";
			} catch (e) {}
			*/
			//onresize="setMaxHeight('contentMain')" 
		}

	</script>
</head>
<body onload="document.getElementById('notification').style.display='none'">
	<div id="container">
		<div id="banner">
			<span id="notification"><div></div></span>
			<div id="bannerLeft">
				<div id="bannerText" style="font-size: 24px;">
					<img src="/web-data/img/dreamboxwebtv.png" alt="Dreambox WebTV">
				</div>
				<div id="current">
				</div>
			</div>			
			<div id="bannerRight">
				<table id="volumeTable">
					<tr>
						<td>Volume: </td>
						<td id="vlcVolume"></td>
					</tr>
				</table>				
			</div>
		</div>
<!--		<div id="current">-->
<!--			<div id="currentContent">-->
<!--				<ul id="mainMenu">-->
<!--					<li><a href="#" onClick="switchStreamMode('TV')">TeleVision</a></li>-->
<!--					<li><a href="#" onClick="switchStreamMode('Radio')">Radio</a></li>-->
<!--				</ul>-->
<!--			</div>-->
<!--		</div>-->
		<div id="content">
			<div id="contentMain">
				<center>
					<div id="vlcPlayer">
						<embed 
							type="application/x-vlc-plugin" 
							pluginspage="http://www.videolan.org" 
							version="VideoLAN.VLCPlugin.2"
						    width="768"
						    height="576"
						    id="vlc">
						</embed>
					</div>
					<div id="vlcButtons">
						<button onClick="vlcPrev()" title="Previous Service">
							<img src="/web-data/img/control_start_blue.png" alt="&lt;&lt;" />
						</button>
						<button onClick="vlcPlay()" title="Play">
							<img src="/web-data/img/control_play_blue.png" alt="&gt;" />
						</button>
						<button onClick="vlcNext()" title="Next Service">
							<img src="/web-data/img/control_end_blue.png" alt="&lt;&lt;" />
						</button>
						<button onClick="vlcStop()" title="Stop">
							<img src="/web-data/img/control_stop_blue.png" alt="Stop" />
						</button>
						<button onClick="vlcFullscreen()" title="Fullscren">
							<img src="/web-data/img/monitor.png" alt="Fullscreen" />
						</button>
<!--						<button onClick="teletext()" title="Teletext">-->
<!--							<img src="/web-data/img/text_align_center.png" alt="Teletext" />-->
<!--						</button>-->
						<button onClick="vlcVolumeDown()" title="Volume Down">
							<img src="/web-data/img/sound_delete.png" alt="Vol-" />
						</button>
						<button onClick="vlcToogleMute()"  title="Mute Audio">
							<img src="/web-data/img/sound_mute.png" alt="Mute" />							
						</button>
						<button onClick="vlcVolumeUp()"  title="Volume Up">
							<img src="/web-data/img/sound_add.png" alt="Vol+" />
						</button>
						<input type="checkbox" id="vlcZap" title="Also zap on TV (for Subservices)">Zap</input>
						<br>
						<span id="bouquetList"></span>
						<span id="channelList"></span>						
					</div>
				</center>
			</div>				
		</div>	
	</div>
	
	<script language="JavaScript" type="Text/Javascript">
	<!--
	function addtoFavorites(){ 
		var url = location.href.replace("#", ""); 
		var title = "Dreambox WebTV"; 
		
		if (window.sidebar){
			// firefox
			window.sidebar.addPanel(title, url, "");
	
		} else if(window.opera && window.print){
			// opera
			var elem = document.createElement('a');
			elem.setAttribute('href', url);
			elem.setAttribute('title', title);
			elem.setAttribute('rel', 'sidebar');
			elem.click();

		} else if(document.all){
			// ie
			window.external.AddFavorite(url,title);
		}
	}
	-->
	</script>
	<div>
		<a style="color: #FFF;font-size: 12px; font-weight: normal;" href="#" onClick="addtoFavorites()">Add to Favorites</a>
	</div>
	
	<script language="javascript" type="text/javascript">			
		initWebTv();
	</script>

</body>
</html>